package com.ln.property_control.mapper;


import com.ln.property_control.pojo.ClaimVo;
import com.ln.property_control.pojo.Department;
import com.ln.property_control.pojo.PropertyVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ClaimMapper {

    List<ClaimVo> findAllByBorrow();

    ClaimVo selectByBorrowNumber(String borrowNumber);

    List<Department> departmentByParentId (@Param("parent_id") int parentId);

    int insertByClaim(ClaimVo claimVo);

    List<PropertyVo>findAllByProperty(PropertyVo propertyVo);

    int saveByClaim(ClaimVo claimVo);
    //归还
    List<ClaimVo>findAllByStatus(String status);
    //提报历史
    List<ClaimVo>findAllByHistory(String status);

    List<PropertyVo>findAllBypropertyVo();

    int insertByDepProMidd(@Param("claim_id")String claim_id ,@Param("property_id") List<String> property_id);

    List<PropertyVo>findByProperId(String property_dep_id);

    List<ClaimVo>findByProClaimID(String borrowNumber);



}
